package com.sg.dto.biz.component.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc OutputBusinessDataDto
 * @使用场景
 */
@Data
public class OutputBusinessDataDto extends BaseDto implements Serializable {

    /**
     * 自定义字段1
     */
    @ApiModelProperty("自定义字段1")
    private String customField1;

    /**
     * 自定义字段2
     */
    @ApiModelProperty("自定义字段2")
    private String customField2;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        OutputBusinessDataDto that = (OutputBusinessDataDto) o;
        return customField1 == that.customField1 && customField2 == that.customField2;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), customField1, customField2);
    }

}
